package com.zkyc.framework.common.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * (User)实体类
 *
 * @author
 * @since 2022-05-17 15:44:58
 */
@TableName("system_user")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
    private static final long serialVersionUID = 245793041165778110L;
    /**
     * 用户id
     */
    @TableId(type = IdType.INPUT )
    private String id;
    /**
     * 用户名
     */
    private String username;
    /**
     * 密码
     */
    private String password;
    /**
     * 创建者
     */
    private  String creatorName;
    /**
     * 用户状态(0:禁用/1:启用)
     */
    private Integer status;
    /**
     * 备注
     */
    private String remark;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date gmtCreated;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date gmtUpdated;
    /**
     * 逻辑删除
     */
    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private String roleName;


    @TableField(exist = false)
    private String websiteId;

    @TableField(exist = false)
    private String operatorId;

    /**
     * 中心id
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer centerId;
    /**
     * 中心名
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String centerName;
    /**
     * 研究院id
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Integer organizationId;
    /**
     * 研究院名
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String organizationName;
}

